import request from '@/utils/request'

// 查询接口实体记录列表
export function listEntityInfo(query) {
  return request({
    url: '/aitcommon/EntityInfo/list',
    method: 'get',
    params: query
  })
}

// 查询接口实体记录详细
export function getEntityInfo(id) {
  return request({
    url: '/aitcommon/EntityInfo/' + id,
    method: 'get'
  })
}

// 新增接口实体记录
export function addEntityInfo(data) {
  return request({
    url: '/aitcommon/EntityInfo',
    method: 'post',
    data: data
  })
}

// 修改接口实体记录
export function updateEntityInfo(data) {
  return request({
    url: '/aitcommon/EntityInfo',
    method: 'put',
    data: data
  })
}

// 删除接口实体记录
export function delEntityInfo(id) {
  return request({
    url: '/aitcommon/EntityInfo/' + id,
    method: 'delete'
  })
}

// 导出接口实体记录
export function exportEntityInfo(query) {
  return request({
    url: '/aitcommon/EntityInfo/export',
    method: 'get',
    params: query
  })
}

// 导出接口实体记录
export function errorClear() {
  return request({
    url: '/aitcommon/EntityInfo/errorClear',
    method: 'get',
  })
}